<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Cube for iOS: CAuthService类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Cube for iOS
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('interface_c_auth_service.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">构造函数</a> &#124;
<a href="#pub-static-methods">类方法</a> &#124;
<a href="#properties">属性</a> &#124;
<a href="interface_c_auth_service-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CAuthService类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>授权服务。管理引擎的授权信息。  
 <a href="interface_c_auth_service.html#details">更多...</a></p>

<p><code>#import &lt;<a class="el" href="_c_auth_service_8h_source.html">CAuthService.h</a>&gt;</code></p>
<div class="dynheader">
类 CAuthService 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interface_c_auth_service.png" usemap="#CAuthService_map" alt=""/>
  <map id="CAuthService_map" name="CAuthService_map">
<area href="interface_c_module.html" title="内核模块。" alt="CModule" shape="rect" coords="0,112,91,136"/>
<area href="interface_c_subject.html" alt="CSubject" shape="rect" coords="0,56,91,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
构造函数</h2></td></tr>
<tr class="memitem:a500561d94b5f0ff97f49546feee5ecc8"><td class="memItemLeft" align="right" valign="top">(instancetype)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_auth_service.html#a500561d94b5f0ff97f49546feee5ecc8">init</a></td></tr>
<tr class="separator:a500561d94b5f0ff97f49546feee5ecc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab55dc46566b8a402ec4f5e290ff51779"><td class="memItemLeft" align="right" valign="top">(AnyPromise *)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_auth_service.html#ab55dc46566b8a402ec4f5e290ff51779">check:appKey:address:</a></td></tr>
<tr class="memdesc:ab55dc46566b8a402ec4f5e290ff51779"><td class="mdescLeft">&#160;</td><td class="mdescRight">校验当前的令牌是否有效。该方法先从本地获取本地令牌进行校验，如果本地令牌失效或者未找到本地令牌，则尝试从授权服务器获取有效的令牌。  <a href="interface_c_auth_service.html#ab55dc46566b8a402ec4f5e290ff51779">更多...</a><br /></td></tr>
<tr class="separator:ab55dc46566b8a402ec4f5e290ff51779"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace6b0eaf46d3e6159ba0d950b96ec44b"><td class="memItemLeft" align="right" valign="top">(<a class="el" href="interface_c_auth_token.html">CAuthToken</a> *)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_auth_service.html#ace6b0eaf46d3e6159ba0d950b96ec44b">checkLocalToken:appKey:</a></td></tr>
<tr class="memdesc:ace6b0eaf46d3e6159ba0d950b96ec44b"><td class="mdescLeft">&#160;</td><td class="mdescRight">加载令牌。  <a href="interface_c_auth_service.html#ace6b0eaf46d3e6159ba0d950b96ec44b">更多...</a><br /></td></tr>
<tr class="separator:ace6b0eaf46d3e6159ba0d950b96ec44b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9e6ea23b281de3b782b3c13b3e5acb8"><td class="memItemLeft" align="right" valign="top">(AnyPromise *)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_auth_service.html#ac9e6ea23b281de3b782b3c13b3e5acb8">applyToken:appKey:</a></td></tr>
<tr class="memdesc:ac9e6ea23b281de3b782b3c13b3e5acb8"><td class="mdescLeft">&#160;</td><td class="mdescRight">从服务器申请令牌。  <a href="interface_c_auth_service.html#ac9e6ea23b281de3b782b3c13b3e5acb8">更多...</a><br /></td></tr>
<tr class="separator:ac9e6ea23b281de3b782b3c13b3e5acb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd59de06f19b989c124212cb99c12016"><td class="memItemLeft" align="right" valign="top">(<a class="el" href="interface_c_auth_token.html">CAuthToken</a> *)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_auth_service.html#afd59de06f19b989c124212cb99c12016">allocToken:</a></td></tr>
<tr class="memdesc:afd59de06f19b989c124212cb99c12016"><td class="mdescLeft">&#160;</td><td class="mdescRight">将当前令牌分配给指定的联系人。  <a href="interface_c_auth_service.html#afd59de06f19b989c124212cb99c12016">更多...</a><br /></td></tr>
<tr class="separator:afd59de06f19b989c124212cb99c12016"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_interface_c_module"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_interface_c_module')"><img src="closed.png" alt="-"/>&#160;构造函数 继承自 <a class="el" href="interface_c_module.html">CModule</a></td></tr>
<tr class="memitem:a708ecec5a6bbb9958aa41857925b5b89 inherit pub_methods_interface_c_module"><td class="memItemLeft" align="right" valign="top">(instancetype _Nonnull)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_module.html#a708ecec5a6bbb9958aa41857925b5b89">initWithName:</a></td></tr>
<tr class="memdesc:a708ecec5a6bbb9958aa41857925b5b89 inherit pub_methods_interface_c_module"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用模块名初始化。  <a href="interface_c_module.html#a708ecec5a6bbb9958aa41857925b5b89">更多...</a><br /></td></tr>
<tr class="separator:a708ecec5a6bbb9958aa41857925b5b89 inherit pub_methods_interface_c_module"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10a5247388b573f5488e28c912a0c474 inherit pub_methods_interface_c_module"><td class="memItemLeft" align="right" valign="top">(BOOL)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_module.html#a10a5247388b573f5488e28c912a0c474">hasStarted</a></td></tr>
<tr class="memdesc:a10a5247388b573f5488e28c912a0c474 inherit pub_methods_interface_c_module"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否已启动过该模块。  <a href="interface_c_module.html#a10a5247388b573f5488e28c912a0c474">更多...</a><br /></td></tr>
<tr class="separator:a10a5247388b573f5488e28c912a0c474 inherit pub_methods_interface_c_module"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e9a7f740dd2a8984f642a4f9d0dad7f inherit pub_methods_interface_c_module"><td class="memItemLeft" align="right" valign="top">(BOOL)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_module.html#a2e9a7f740dd2a8984f642a4f9d0dad7f">start</a></td></tr>
<tr class="memdesc:a2e9a7f740dd2a8984f642a4f9d0dad7f inherit pub_methods_interface_c_module"><td class="mdescLeft">&#160;</td><td class="mdescRight">启动模块。  <a href="interface_c_module.html#a2e9a7f740dd2a8984f642a4f9d0dad7f">更多...</a><br /></td></tr>
<tr class="separator:a2e9a7f740dd2a8984f642a4f9d0dad7f inherit pub_methods_interface_c_module"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac23c831eec40d2ecc7a9ebb2306073bf inherit pub_methods_interface_c_module"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_module.html#ac23c831eec40d2ecc7a9ebb2306073bf">stop</a></td></tr>
<tr class="memdesc:ac23c831eec40d2ecc7a9ebb2306073bf inherit pub_methods_interface_c_module"><td class="mdescLeft">&#160;</td><td class="mdescRight">停止模块。  <a href="interface_c_module.html#ac23c831eec40d2ecc7a9ebb2306073bf">更多...</a><br /></td></tr>
<tr class="separator:ac23c831eec40d2ecc7a9ebb2306073bf inherit pub_methods_interface_c_module"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d060627c5f1c17f5cd7d18aa0dce8c0 inherit pub_methods_interface_c_module"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_module.html#a9d060627c5f1c17f5cd7d18aa0dce8c0">suspend</a></td></tr>
<tr class="memdesc:a9d060627c5f1c17f5cd7d18aa0dce8c0 inherit pub_methods_interface_c_module"><td class="mdescLeft">&#160;</td><td class="mdescRight">挂起模块。  <a href="interface_c_module.html#a9d060627c5f1c17f5cd7d18aa0dce8c0">更多...</a><br /></td></tr>
<tr class="separator:a9d060627c5f1c17f5cd7d18aa0dce8c0 inherit pub_methods_interface_c_module"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9c36fdba0fbd7bd0fb204c65be99ceb inherit pub_methods_interface_c_module"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_module.html#ab9c36fdba0fbd7bd0fb204c65be99ceb">resume</a></td></tr>
<tr class="memdesc:ab9c36fdba0fbd7bd0fb204c65be99ceb inherit pub_methods_interface_c_module"><td class="mdescLeft">&#160;</td><td class="mdescRight">恢复模块。  <a href="interface_c_module.html#ab9c36fdba0fbd7bd0fb204c65be99ceb">更多...</a><br /></td></tr>
<tr class="separator:ab9c36fdba0fbd7bd0fb204c65be99ceb inherit pub_methods_interface_c_module"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af14f87ab9be85cf00581109c98158e83 inherit pub_methods_interface_c_module"><td class="memItemLeft" align="right" valign="top">(BOOL)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_module.html#af14f87ab9be85cf00581109c98158e83">isReady</a></td></tr>
<tr class="memdesc:af14f87ab9be85cf00581109c98158e83 inherit pub_methods_interface_c_module"><td class="mdescLeft">&#160;</td><td class="mdescRight">模块是否就绪。  <a href="interface_c_module.html#af14f87ab9be85cf00581109c98158e83">更多...</a><br /></td></tr>
<tr class="separator:af14f87ab9be85cf00581109c98158e83 inherit pub_methods_interface_c_module"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_interface_c_subject"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_interface_c_subject')"><img src="closed.png" alt="-"/>&#160;构造函数 继承自 <a class="el" href="interface_c_subject.html">CSubject</a></td></tr>
<tr class="memitem:a464e4e7d909912a5e701547932332235 inherit pub_methods_interface_c_subject"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_subject.html#a464e4e7d909912a5e701547932332235">attach:</a></td></tr>
<tr class="memdesc:a464e4e7d909912a5e701547932332235 inherit pub_methods_interface_c_subject"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加无事件观察者。  <a href="interface_c_subject.html#a464e4e7d909912a5e701547932332235">更多...</a><br /></td></tr>
<tr class="separator:a464e4e7d909912a5e701547932332235 inherit pub_methods_interface_c_subject"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb959799b4ddf75248bc580b55fe4299 inherit pub_methods_interface_c_subject"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_subject.html#aeb959799b4ddf75248bc580b55fe4299">attachWithName:observer:</a></td></tr>
<tr class="memdesc:aeb959799b4ddf75248bc580b55fe4299 inherit pub_methods_interface_c_subject"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加指定事件名观察者。  <a href="interface_c_subject.html#aeb959799b4ddf75248bc580b55fe4299">更多...</a><br /></td></tr>
<tr class="separator:aeb959799b4ddf75248bc580b55fe4299 inherit pub_methods_interface_c_subject"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e153c98eb2302a8648539a38fcc89ce inherit pub_methods_interface_c_subject"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_subject.html#a7e153c98eb2302a8648539a38fcc89ce">detach:</a></td></tr>
<tr class="memdesc:a7e153c98eb2302a8648539a38fcc89ce inherit pub_methods_interface_c_subject"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除无事件观察者。  <a href="interface_c_subject.html#a7e153c98eb2302a8648539a38fcc89ce">更多...</a><br /></td></tr>
<tr class="separator:a7e153c98eb2302a8648539a38fcc89ce inherit pub_methods_interface_c_subject"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a970454d975a515f7540358ecde107fc9 inherit pub_methods_interface_c_subject"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_subject.html#a970454d975a515f7540358ecde107fc9">detachWithName:observer:</a></td></tr>
<tr class="memdesc:a970454d975a515f7540358ecde107fc9 inherit pub_methods_interface_c_subject"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除指定事件名观察者。  <a href="interface_c_subject.html#a970454d975a515f7540358ecde107fc9">更多...</a><br /></td></tr>
<tr class="separator:a970454d975a515f7540358ecde107fc9 inherit pub_methods_interface_c_subject"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95708a7cfe6231af9e284b4cbc1c70b8 inherit pub_methods_interface_c_subject"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_subject.html#a95708a7cfe6231af9e284b4cbc1c70b8">notifyObservers:</a></td></tr>
<tr class="memdesc:a95708a7cfe6231af9e284b4cbc1c70b8 inherit pub_methods_interface_c_subject"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知观察者有新事件更新。  <a href="interface_c_subject.html#a95708a7cfe6231af9e284b4cbc1c70b8">更多...</a><br /></td></tr>
<tr class="separator:a95708a7cfe6231af9e284b4cbc1c70b8 inherit pub_methods_interface_c_subject"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
类方法</h2></td></tr>
<tr class="memitem:a438b79828906560746014c513f6f2d3f"><td class="memItemLeft" align="right" valign="top">(NSString *)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_c_auth_service.html#a438b79828906560746014c513f6f2d3f">domain</a></td></tr>
<tr class="memdesc:a438b79828906560746014c513f6f2d3f"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前配置的域。  <a href="interface_c_auth_service.html#a438b79828906560746014c513f6f2d3f">更多...</a><br /></td></tr>
<tr class="separator:a438b79828906560746014c513f6f2d3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
属性</h2></td></tr>
<tr class="memitem:a40a222fb05f39620585ee39a6696b9c1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_c_auth_token.html">CAuthToken</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_auth_service.html#a40a222fb05f39620585ee39a6696b9c1">token</a></td></tr>
<tr class="memdesc:a40a222fb05f39620585ee39a6696b9c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">当前使用的访问令牌。  <a href="interface_c_auth_service.html#a40a222fb05f39620585ee39a6696b9c1">更多...</a><br /></td></tr>
<tr class="separator:a40a222fb05f39620585ee39a6696b9c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header properties_interface_c_module"><td colspan="2" onclick="javascript:toggleInherit('properties_interface_c_module')"><img src="closed.png" alt="-"/>&#160;属性 继承自 <a class="el" href="interface_c_module.html">CModule</a></td></tr>
<tr class="memitem:a1b8b93be9419f3ee79e449d60f9b77c2 inherit properties_interface_c_module"><td class="memItemLeft" align="right" valign="top">NSString *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_module.html#a1b8b93be9419f3ee79e449d60f9b77c2">name</a></td></tr>
<tr class="memdesc:a1b8b93be9419f3ee79e449d60f9b77c2 inherit properties_interface_c_module"><td class="mdescLeft">&#160;</td><td class="mdescRight">模块名。  <a href="interface_c_module.html#a1b8b93be9419f3ee79e449d60f9b77c2">更多...</a><br /></td></tr>
<tr class="separator:a1b8b93be9419f3ee79e449d60f9b77c2 inherit properties_interface_c_module"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00abb412b5ff41b42943714f58f5e757 inherit properties_interface_c_module"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_c_kernel.html">CKernel</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_module.html#a00abb412b5ff41b42943714f58f5e757">kernel</a></td></tr>
<tr class="memdesc:a00abb412b5ff41b42943714f58f5e757 inherit properties_interface_c_module"><td class="mdescLeft">&#160;</td><td class="mdescRight">内核。  <a href="interface_c_module.html#a00abb412b5ff41b42943714f58f5e757">更多...</a><br /></td></tr>
<tr class="separator:a00abb412b5ff41b42943714f58f5e757 inherit properties_interface_c_module"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7344ea3306b194db08416214f94f7ad4 inherit properties_interface_c_module"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_c_pipeline.html">CPipeline</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_module.html#a7344ea3306b194db08416214f94f7ad4">pipeline</a></td></tr>
<tr class="memdesc:a7344ea3306b194db08416214f94f7ad4 inherit properties_interface_c_module"><td class="mdescLeft">&#160;</td><td class="mdescRight">模块使用的默认数据管道。  <a href="interface_c_module.html#a7344ea3306b194db08416214f94f7ad4">更多...</a><br /></td></tr>
<tr class="separator:a7344ea3306b194db08416214f94f7ad4 inherit properties_interface_c_module"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ad669d6fb45cfaa0a27b1ee52ef1426 inherit properties_interface_c_module"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_c_plugin_system.html">CPluginSystem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_module.html#a7ad669d6fb45cfaa0a27b1ee52ef1426">pluginSystem</a></td></tr>
<tr class="memdesc:a7ad669d6fb45cfaa0a27b1ee52ef1426 inherit properties_interface_c_module"><td class="mdescLeft">&#160;</td><td class="mdescRight">插件系统。  <a href="interface_c_module.html#a7ad669d6fb45cfaa0a27b1ee52ef1426">更多...</a><br /></td></tr>
<tr class="separator:a7ad669d6fb45cfaa0a27b1ee52ef1426 inherit properties_interface_c_module"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>授权服务。管理引擎的授权信息。 </p>
</div><h2 class="groupheader">函数文档</h2>
<a id="afd59de06f19b989c124212cb99c12016"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd59de06f19b989c124212cb99c12016">&#9670;&nbsp;</a></span>allocToken:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="interface_c_auth_token.html">CAuthToken</a> *) allocToken: </td>
          <td></td>
          <td class="paramtype">(UInt64)&#160;</td>
          <td class="paramname"><em>contactId</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>将当前令牌分配给指定的联系人。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">contactId</td><td>指定联系人 ID 。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回令牌。 </dd></dl>

</div>
</div>
<a id="ac9e6ea23b281de3b782b3c13b3e5acb8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9e6ea23b281de3b782b3c13b3e5acb8">&#9670;&nbsp;</a></span>applyToken:appKey:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (AnyPromise *) applyToken: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>domain</em></td>
        </tr>
        <tr>
          <td class="paramkey">appKey:</td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>appKey</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>从服务器申请令牌。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">domain</td><td>令牌对应的域。 </td></tr>
    <tr><td class="paramname">appKey</td><td>令牌指定的 App Key 串。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回 Promise 异步执行实例。 </dd></dl>

</div>
</div>
<a id="ab55dc46566b8a402ec4f5e290ff51779"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab55dc46566b8a402ec4f5e290ff51779">&#9670;&nbsp;</a></span>check:appKey:address:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (AnyPromise *) check: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>domain</em></td>
        </tr>
        <tr>
          <td class="paramkey">appKey:</td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>appKey</em></td>
        </tr>
        <tr>
          <td class="paramkey">address:</td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>address</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>校验当前的令牌是否有效。该方法先从本地获取本地令牌进行校验，如果本地令牌失效或者未找到本地令牌，则尝试从授权服务器获取有效的令牌。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">domain</td><td>令牌对应的域。 </td></tr>
    <tr><td class="paramname">appKey</td><td>令牌指定的 App Key 串。 </td></tr>
    <tr><td class="paramname">address</td><td>授权服务器地址。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回 Promise 异步执行实例。 </dd></dl>

</div>
</div>
<a id="ace6b0eaf46d3e6159ba0d950b96ec44b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace6b0eaf46d3e6159ba0d950b96ec44b">&#9670;&nbsp;</a></span>checkLocalToken:appKey:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="interface_c_auth_token.html">CAuthToken</a> *) checkLocalToken: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>domain</em></td>
        </tr>
        <tr>
          <td class="paramkey">appKey:</td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>appKey</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>加载令牌。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">domain</td><td>指定域。 </td></tr>
    <tr><td class="paramname">appKey</td><td>指定 App Key 数据。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回有效的令牌。 </dd></dl>

</div>
</div>
<a id="a438b79828906560746014c513f6f2d3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a438b79828906560746014c513f6f2d3f">&#9670;&nbsp;</a></span>domain</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (NSString *) domain </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取当前配置的域。 </p>
<dl class="section return"><dt>返回</dt><dd>返回当前工作的域。 </dd></dl>

</div>
</div>
<a id="a500561d94b5f0ff97f49546feee5ecc8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a500561d94b5f0ff97f49546feee5ecc8">&#9670;&nbsp;</a></span>init</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (instancetype) init </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">属性说明</h2>
<a id="a40a222fb05f39620585ee39a6696b9c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40a222fb05f39620585ee39a6696b9c1">&#9670;&nbsp;</a></span>token</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="interface_c_auth_token.html">CAuthToken</a>*) token</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>当前使用的访问令牌。 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li><a class="el" href="_c_auth_service_8h_source.html">CAuthService.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.18-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="interface_c_auth_service.html">CAuthService</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
